import React from "react";
// import Home from '../route1/Home';
import Index from "./Index";
import About from "./../route1/About";
import Home from "./../route1/Home";
import Comment from "./../route1/Comment";
import { HashRouter as Router, Route, Link,Redirect } from "react-router-dom";

export default class IRouter extends React.Component {
  render() {
    return (
      <Router>
        <Index>
          {/* <Redirect to="/home" /> */}
          <Route path="/home" render={()=>
            <Home>
              <Route path="/home/a" component={About}></Route>
            </Home>
          }></Route>
          <Route path="/about" component={About}></Route>
          <Route path="/comment" component={Comment}></Route>
        </Index>
      </Router>
    );
  }
}
